# # 多返回值
# def return_test():
#     return 1,"xxl",True
# x, y, z=return_test()
# print(x)
# print(y)
# print(z)
#===========================================================
# # 函数参数
# # # 1.位置参数
# def user_info(name,age,gender):
#     print(f"{name},{age},{gender}")
# user_info("xxl",13,"纳米")
#
# # 2.关键字参数 有位置参数 需在最前面
# user_info("xl",15,gender="女")
# # 3.缺省值
# def user_info2(name,age,gender="nan"):
#     print(f"{name},{age},{gender}")
# user_info2("xxl",13)
# # 4.不定长参数
# def func(*args):
#     print(f"args类型是{type(args)},{args}")
# func(1,1,1,"xxl",98,"cl")
# def func(**kwargs):
#     print(f"args类型是{type(kwargs)},{kwargs}")
# func(name="xxl",age=13,gender="无")
# # 函数的逻辑传递 参数传递函数
# def func1(func2):
#     result=func2(1,2)
#     print(type(func2),",,,",result)
# def func2(x,y):
#     return x+y
# def func3():
#     func1(func2)
#     print("fun3")
# func3()
# func1(func2)
# ---------------------------------------------------------------------
# def func2():
#     result=func1(1,2)
#     print("result",result)
#     print("xx")
# def func1(x,y):
#     return x+y
# func2()
# ------------------------------------------------------------------------------------------------
# # lambda 匿名函数的用法
# # lambada 只能写1行代码 自动返回值 只用一次
# def func(action):
#     result=action(1,2)
#     print(result)
# func(lambda x,y:x+y)
